<#assign count = page.first>
		 		<#assign pageUrl = query_context>
				<#assign totalPages = page.totalPages>
				<#assign pageNo = page.pageNo>
				<#assign pageSize = page.pageSize> 
 <div class="pages"> 
   	    <#if (totalPages > 1)>
		<#if (pageNo > 1)>
      <a  href="${pageUrl}${ ((pageNo-1) > 0)?string(pageNo-1,pageNo)}/${parameter!''}">&#171; Prev </a>
	</#if>
	<#if (pageNo == 1)>
		<span class="current">1</span> 
	<#else>
		<a  href="${pageUrl}1/${parameter!''}">1</a>
	</#if>
	<#if (totalPages > 0)>
		<#if (pageNo < 8)>
				<#if (pageNo >= 2)>
					<#list 2..pageNo as i>
				<#if (pageNo==i)> 
				 <span class="current">${i}</span> 
				<#else>
					<a  href="${pageUrl}${i}/${parameter!''}">${i}</a> 
				</#if>
			</#list>
			</#if>
		<#else>
			 	 ...&nbsp;  
			  <#list pageNo-4..pageNo as i>
				<#if pageNo==i>
					 <span class="current">${i}</span> 
 			<#else>
					<a  href="${pageUrl}${i}/${parameter!''}">${i}</a>  
				</#if>
			  </#list>
		</#if>
		<#if pageNo gte totalPages-4 || totalPages-4 lte 0>
			<#if pageNo+1 lte totalPages>
			<#list pageNo+1..totalPages as i>
				<a  href="${pageUrl}${i}/${parameter!''}">${i}</a>  
				<#if pageNo == i>
				  	 <span class="current">${i}</span> 
				</#if>
			</#list>
			</#if>
		<#else>
			<#list page.nextPage..pageNo+4 as i>
				<#if pageNo == i>
				 <span class="current">${i}</span> 
				<#else>
					<a  href="${pageUrl}${i}/${parameter!''}">${i}</a>  
				</#if>
			</#list>
			 ...&nbsp; 
			    
			  <a  href="${pageUrl}${totalPages}/${parameter!''}">${totalPages}</a>  
		</#if>
		<#if pageNo lt totalPages>
		  <a  title="Next" href="${pageUrl}${(page.nextPage lt totalPages)?string(page.nextPage,totalPages)}/${parameter!''}">Next</a> 
		</#if>
	</#if>
</#if>
 </div> 